package com.copa.api;

import com.copa.provider.music.kugou.KugouMusicApi;
import com.copa.provider.music.netease.NeteaseMusicApi;
import com.copa.provider.music.qq.QQMusicApi;

/**
 * 音乐类型枚举类
 */
@SuppressWarnings("SpellCheckingInspection")
public enum MusicProvider {
    Netease("网易云音乐", NeteaseMusicApi.class),
    QQ("QQ音乐", QQMusicApi.class),
    Kugou("酷狗音乐", KugouMusicApi.class);

    private final Class<? extends MusicApi> musicApiClass;
    private final String providerName;

    MusicProvider(String providerName, Class<? extends MusicApi> musicApiClass) {
        this.providerName = providerName;
        this.musicApiClass = musicApiClass;
    }

    public Class<? extends MusicApi> getMusicApiClass() {
        return musicApiClass;
    }

    @Override
    public String toString() {
        return providerName;
    }
}
